//
//  WSFMData.h
//  GroupFourFM
//
//  Created by 王鑫 on 15/12/23.
//  Copyright © 2015年 GroupFour. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WSAlbumModel.h"

@interface WSFMData : NSObject

@property (nonatomic, retain)FMDatabase *db;

+(instancetype)shareFMDB;

-(void)openDB;

-(void)openDBandCreate;

//专辑
-(void)dropTableAlbums;

-(void)insertAlbumData:(WSAlbumModel *)album;

-(NSMutableArray *)selectAlbumData;

-(NSMutableArray *)selectAlbumIdData;

-(void)deleteByAlbumId:(NSString *)Id;

//声音

-(void)dropTableTracks;
-(void)insertTrackData:(WSAlbumModel *)track;
-(NSMutableArray *)selectTrackData;
-(NSMutableArray *)selectTrackIDData;
-(void)deleteByTrackId:(NSString *)Id;
-(NSMutableArray *)selectTrackImageData;
-(NSMutableArray *)selectTrackNameData;


@end
